package com.esd.db.model;

import java.util.Date;

/**
 * 文章评论
 */
public class VtdComment {
	
	private	String id;                  // 主键id
	private String articleId;    		// 文章id
	private int targetUserId;			//被回复人id
	private String targetUsername;		//被回复人用户名
	private String content;				//回复内容 longtext类型 
	private int isCommentReply;			//是否是评论的回复 1是 0否  用这个属性判断这条信息是回复文章还是回复评论
	private String pid;					//父id
	private String imgUrl;				//图片路径
	private int readFlag;				//是否已读 1是 0否
	private	int createUserId;           // 文章创建用户id
	private	String createUsername;	 	// 文章创建用户的用户名
	private	Date createTime;        	// 文章创建时间
	private int isDelete;            	// 是否删除 1是 0否
	private int isGranted;				// 是否通过审核 1是 0否
	
	public VtdComment() {
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getArticleId() {
		return articleId;
	}

	public void setArticleId(String articleId) {
		this.articleId = articleId;
	}

	public int getTargetUserId() {
		return targetUserId;
	}

	public void setTargetUserId(int targetUserId) {
		this.targetUserId = targetUserId;
	}

	public String getTargetUsername() {
		return targetUsername;
	}

	public void setTargetUsername(String targetUsername) {
		this.targetUsername = targetUsername;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getIsCommentReply() {
		return isCommentReply;
	}

	public void setIsCommentReply(int isCommentReply) {
		this.isCommentReply = isCommentReply;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public int getReadFlag() {
		return readFlag;
	}

	public void setReadFlag(int readFlag) {
		this.readFlag = readFlag;
	}

	public int getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(int createUserId) {
		this.createUserId = createUserId;
	}

	public String getCreateUsername() {
		return createUsername;
	}

	public void setCreateUsername(String createUsername) {
		this.createUsername = createUsername;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(int isDelete) {
		this.isDelete = isDelete;
	}

	public int getIsGranted() {
		return isGranted;
	}

	public void setIsGranted(int isGranted) {
		this.isGranted = isGranted;
	}

	@Override
	public String toString() {
		return "VtdComment [id=" + id + ", articleId=" + articleId + ", targetUserId=" + targetUserId
				+ ", targetUsername=" + targetUsername + ", content=" + content + ", isCommentReply=" + isCommentReply
				+ ", pid=" + pid + ", imgUrl=" + imgUrl + ", readFlag=" + readFlag + ", createUserId=" + createUserId
				+ ", createUsername=" + createUsername + ", createTime=" + createTime + ", isDelete=" + isDelete
				+ ", isGranted=" + isGranted + "]";
	}

}
